<?php

namespace app\shop\enums\goods;

use app\shop\enums\BaseEnum;

class GoodsStockDeductType extends BaseEnum
{
    /**
     * 下单扣库存
     */
    const AFTER_ORDER = 1;

    /**
     * 付款扣库存
     */
    const AFTER_PAY = 2;

    protected static array $descriptions = [
        self::AFTER_PAY   => '付款扣库存',
        self::AFTER_ORDER => '下单扣库存',
    ];
}